Path: api/v1/stock/{stockno}/locations
This API is JSON:API compliant.
This endpoint supports the following methods:
GET
The resource type for this endpoint is StockLocations
The identifier is stockNo-locationNo
The StockLocations resource type attributes are as follows:
Path: api/v1/stock/2/locations
Response:
{
"data": [
{
"id": "2-1",
"type": "StockLocations",
"attributes": {
"line": 1,
"locationNo": 1,
"locationCode": "ACT",
"minQtyLow": 1.0,
"minQtyHigh": 10.0,
"LimitQty": 20.0,
"ReorderQty": 5.0,
"daysSupply": 5,
"zone": "A",
"primaryBin1": "1.2.3.BIN1",
"maxQtyBin1": 1.0,
"primaryBin2": "A.A.1.1.2",
"maxQtyBin2": 20.0
}
},
{
"id": "2-2",
"type": "StockLocations",
"attributes": {
"line": 2,
"locationNo": 2,
"locationCode": "NSW",
"minQtyLow": 2.0,
"minQtyHigh": 11.0,
"LimitQty": 21.0,
"ReorderQty": 6.0,
"daysSupply": 6,
"zone": "A",
"primaryBin1": "A.A.1.2.2",
"maxQtyBin1": 2.0,
"primaryBin2": "A.A.2.3.1",
"maxQtyBin2": 3.0
}
},
{
"id": "2-3",
"type": "StockLocations",
"attributes": {
"line": 3,
"locationCode": "NT"
}
}
]
}
Path: api/v1/stock/2/locations/2-2
Response:
{
"data": {
"id": "2-2",
"type": "StockLocations",
"attributes": {
"line": 2,
"locationNo": 2,
"locationCode": "NSW",
"minQtyLow": 2.0,
"minQtyHigh": 11.0,
"LimitQty": 21.0,
"ReorderQty": 6.0,
"daysSupply": 6,
"zone": "A",
"primaryBin1": "A.A.1.2.2",
"maxQtyBin1": 2.0,
"primaryBin2": "A.A.2.3.1",
"maxQtyBin2": 3.0
},
"links": {
"self": "/api/v1/stock/2/locations/2-2"
}
}
}